package cn.yuanqiao.archive.guidang.domain;

import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 A001_GUIDANGPACKAGE
 * 
 * @author yuanqiao
 * @date 2023-10-30
 */
public class Guidangpackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private final String BIGTABLENAME = "_GUIDANGPACKAGE";

    public Guidangpackage() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            throw new ServiceException("tenantCode is null");
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }

    private String tableName;
    /** $column.columnComment */
    private String packageId;

    /** $column.columnComment */

    private String SIZE;

    /** $column.columnComment */

    private String fileName;

    /** $column.columnComment */

    private String receiveTime;

    /** $column.columnComment */

    private String isDel;

    /** $column.columnComment */

    private String STATE;

    /** $column.columnComment */

    private String REASON;

    /** $column.columnComment */

    private String PATH;

    public void setPackageId(String packageId) 
    {
        this.packageId = packageId;
    }

    public String getPackageId() 
    {
        return packageId;
    }
    public void setSIZE(String SIZE) 
    {
        this.SIZE = SIZE;
    }

    public String getSIZE() 
    {
        return SIZE;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setReceiveTime(String receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public String getReceiveTime() 
    {
        return receiveTime;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }
    public void setSTATE(String STATE) 
    {
        this.STATE = STATE;
    }

    public String getSTATE() 
    {
        return STATE;
    }
    public void setREASON(String REASON) 
    {
        this.REASON = REASON;
    }

    public String getREASON() 
    {
        return REASON;
    }
    public void setPATH(String PATH) 
    {
        this.PATH = PATH;
    }

    public String getPATH() 
    {
        return PATH;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("packageId", getPackageId())
            .append("SIZE", getSIZE())
            .append("fileName", getFileName())
            .append("receiveTime", getReceiveTime())
            .append("isDel", getIsDel())
            .append("STATE", getSTATE())
            .append("REASON", getREASON())
            .append("PATH", getPATH())
            .toString();
    }
}
